package com.xyz.controller;

import com.xyz.service.UserServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 肖咉卓
 */
@RestController
public class HelloController {

    @Resource(name = "userService")
    UserServiceImpl userService;

    @GetMapping("hello")
    public String hello(){
        System.out.println("Controller调用Service1");
        return userService.buyTicket();
    }
}
